/**
 * 主题文物列表页样式
 */

* {
  font-family: 'STKaiti', 'KaiTi', serif;
}

.theme-artifacts-container {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f5f0e8 0%, #faf8f3 100%);
  box-sizing: border-box;
}

/* 主题头部 */
.theme-header {
  position: relative;
  min-height: 240px;
  padding: clamp(30px, 6vw, 50px) clamp(20px, 4vw, 40px);
  overflow: hidden;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.08) 35px, rgba(255,255,255,.08) 70px);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2vw, 15px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon {
  font-size: clamp(48px, 10vw, 80px);
  margin-bottom: 8px;
}

.theme-title {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  font-family: 'STKaiti', 'KaiTi', serif;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  line-height: 1.3;
}

.theme-desc {
  font-size: clamp(13px, 2.8vw, 18px);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  max-width: 600px;
  margin-top: 5px;
  padding: 0 15px;
}

.theme-count-badge {
  margin-top: 12px;
  padding: clamp(6px, 1.5vw, 8px) clamp(15px, 3vw, 20px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.count-text {
  font-size: clamp(13px, 2.8vw, 18px);
  color: #fff;
  font-weight: 600;
}

/* 文物列表主体 */
.artifacts-body {
  position: relative;
  margin-top: -30px;
  padding: 0 clamp(15px, 3vw, 30px) 80px;
  flex: 1;
}

.artifacts-scroll {
  min-height: calc(100vh - 280px);
}

.artifacts-list {
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 3vw, 20px);
}

/* 文物卡片 */
.artifact-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(15px);
  -webkit-backdrop-filter: saturate(180%) blur(15px);
  border-radius: clamp(12px, 2vw, 16px);
  padding: clamp(15px, 3vw, 20px);
  display: flex;
  align-items: center;
  gap: clamp(15px, 3vw, 20px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-height: 120px;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  border: 1px solid rgba(255, 255, 255, 0.5);
  
  &:nth-child(1) { animation-delay: 100ms; }
  &:nth-child(2) { animation-delay: 200ms; }
  &:nth-child(3) { animation-delay: 300ms; }
  &:nth-child(4) { animation-delay: 400ms; }

  &:active {
    transform: scale(0.97) translateY(2px);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.12);
  }
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
  z-index: 1;
}

.artifact-image-wrapper {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.artifact-image {
  width: clamp(80px, 15vw, 100px);
  height: clamp(80px, 15vw, 100px);
  border-radius: clamp(10px, 2vw, 12px);
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-placeholder {
  font-size: clamp(40px, 8vw, 50px);
}

.artifact-info {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5vw, 10px);
  min-width: 0;
}

.artifact-name {
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 600;
  color: #333;
  letter-spacing: 0.04em;
  font-family: 'STKaiti', 'KaiTi', serif;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-meta {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 8px);
  flex-wrap: wrap;
}

.meta-tag {
  font-size: clamp(11px, 2.3vw, 14px);
  color: #666;
  background: rgba(139, 69, 19, 0.08);
  padding: clamp(3px, 0.8vw, 4px) clamp(8px, 1.8vw, 10px);
  border-radius: 12px;
  white-space: nowrap;
  line-height: 1.3;
}

.meta-divider {
  font-size: clamp(11px, 2.3vw, 14px);
  color: #999;
}

.artifact-description {
  font-size: clamp(12px, 2.5vw, 16px);
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.card-arrow {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: clamp(24px, 5vw, 32px);
  height: clamp(24px, 5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-icon {
  font-size: clamp(32px, 6vw, 42px);
  color: #999;
  line-height: 1;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 12vw, 100px) clamp(20px, 4vw, 40px);
  text-align: center;
  gap: clamp(15px, 3vw, 20px);
}

.empty-icon {
  font-size: clamp(50px, 10vw, 70px);
}

.empty-title {
  font-size: clamp(18px, 3.8vw, 24px);
  font-weight: 600;
  color: #666;
}

.empty-hint {
  font-size: clamp(13px, 2.8vw, 18px);
  color: #999;
  line-height: 1.6;
}

/* 加载和错误状态 */
.loading-wrapper,
.empty-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-text,
.empty-text {
  font-size: clamp(14px, 3vw, 20px);
  color: #999;
}

